package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 驾驶证业务
 *
 * @author 
 * @email
 */
@TableName("jiashizheng")
public class JiashizhengEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


	public JiashizhengEntity() {

	}

	public JiashizhengEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @TableField(value = "id")

    private Integer id;


    /**
     * 标题
     */
    @TableField(value = "jiashizheng_name")

    private String jiashizhengName;


    /**
     * 驾驶证业务类型
     */
    @TableField(value = "jiashizheng_types")

    private Integer jiashizhengTypes;


    /**
     * 申请时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
    @TableField(value = "jiashizheng_time")

    private Date jiashizhengTime;


    /**
     * 相关文件
     */
    @TableField(value = "jiashizheng_file")

    private String jiashizhengFile;


    /**
     * 申请用户
     */
    @TableField(value = "yonghu_id")

    private Integer yonghuId;


    /**
     * 详情
     */
    @TableField(value = "jiashizheng_content")

    private String jiashizhengContent;


    /**
     * 申请状态
     */
    @TableField(value = "jiashizheng_yesno_types")

    private Integer jiashizhengYesnoTypes;


    /**
     * 申请结果
     */
    @TableField(value = "jiashizheng_yesno_text")

    private String jiashizhengYesnoText;


    /**
     * 创建时间
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
    @TableField(value = "create_time",fill = FieldFill.INSERT)

    private Date createTime;


    /**
	 * 设置：主键
	 */
    public Integer getId() {
        return id;
    }
    /**
	 * 获取：主键
	 */

    public void setId(Integer id) {
        this.id = id;
    }
    /**
	 * 设置：标题
	 */
    public String getJiashizhengName() {
        return jiashizhengName;
    }
    /**
	 * 获取：标题
	 */

    public void setJiashizhengName(String jiashizhengName) {
        this.jiashizhengName = jiashizhengName;
    }
    /**
	 * 设置：驾驶证业务类型
	 */
    public Integer getJiashizhengTypes() {
        return jiashizhengTypes;
    }
    /**
	 * 获取：驾驶证业务类型
	 */

    public void setJiashizhengTypes(Integer jiashizhengTypes) {
        this.jiashizhengTypes = jiashizhengTypes;
    }
    /**
	 * 设置：申请时间
	 */
    public Date getJiashizhengTime() {
        return jiashizhengTime;
    }
    /**
	 * 获取：申请时间
	 */

    public void setJiashizhengTime(Date jiashizhengTime) {
        this.jiashizhengTime = jiashizhengTime;
    }
    /**
	 * 设置：相关文件
	 */
    public String getJiashizhengFile() {
        return jiashizhengFile;
    }
    /**
	 * 获取：相关文件
	 */

    public void setJiashizhengFile(String jiashizhengFile) {
        this.jiashizhengFile = jiashizhengFile;
    }
    /**
	 * 设置：申请用户
	 */
    public Integer getYonghuId() {
        return yonghuId;
    }
    /**
	 * 获取：申请用户
	 */

    public void setYonghuId(Integer yonghuId) {
        this.yonghuId = yonghuId;
    }
    /**
	 * 设置：详情
	 */
    public String getJiashizhengContent() {
        return jiashizhengContent;
    }
    /**
	 * 获取：详情
	 */

    public void setJiashizhengContent(String jiashizhengContent) {
        this.jiashizhengContent = jiashizhengContent;
    }
    /**
	 * 设置：申请状态
	 */
    public Integer getJiashizhengYesnoTypes() {
        return jiashizhengYesnoTypes;
    }
    /**
	 * 获取：申请状态
	 */

    public void setJiashizhengYesnoTypes(Integer jiashizhengYesnoTypes) {
        this.jiashizhengYesnoTypes = jiashizhengYesnoTypes;
    }
    /**
	 * 设置：申请结果
	 */
    public String getJiashizhengYesnoText() {
        return jiashizhengYesnoText;
    }
    /**
	 * 获取：申请结果
	 */

    public void setJiashizhengYesnoText(String jiashizhengYesnoText) {
        this.jiashizhengYesnoText = jiashizhengYesnoText;
    }
    /**
	 * 设置：创建时间
	 */
    public Date getCreateTime() {
        return createTime;
    }
    /**
	 * 获取：创建时间
	 */

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Jiashizheng{" +
            "id=" + id +
            ", jiashizhengName=" + jiashizhengName +
            ", jiashizhengTypes=" + jiashizhengTypes +
            ", jiashizhengTime=" + jiashizhengTime +
            ", jiashizhengFile=" + jiashizhengFile +
            ", yonghuId=" + yonghuId +
            ", jiashizhengContent=" + jiashizhengContent +
            ", jiashizhengYesnoTypes=" + jiashizhengYesnoTypes +
            ", jiashizhengYesnoText=" + jiashizhengYesnoText +
            ", createTime=" + createTime +
        "}";
    }
}
